<template>
  <div>
    <Head title="影院"></Head>
  </div>
</template>


<script>
export default {
  mounted() {
    if (this.city) {
      this.$http
        .getmaizuo(
          {
            cityId: this.city.cityId,
            ticketFlag: 1,
          },
          {
            "X-Host": "mall.film-ticket.cinema.list",
          }
        )
        .then((res) => {
          this.changeCinemaList(res.data.cinemas);
        });
    } else {
      this.$dialog
        .alert({
          title: "友情提示",
          message: "你没有选择城市,请去定位选择",
          theme: "round-button",
        })
        .then(() => {
          // on close
          this.$router.push({ name: "city" });
        });
    }
  },
};
</script>
